package main

import "fmt"

func isSXH(n int) bool {

	var i, j, k int
	i = n % 10
	j = (n / 10) % 10
	k = (n / 100) % 10
	sum := i*i*i + j*j*j + k*k*k
	return sum == n

}

func main() {

	for i := 100; i <= 999; i++ {
		if isSXH(i) == true{
			fmt.Println(i,"是水仙花")
		}
	}

}
